package com.etc.entity;


import lombok.Data;

import java.io.Serializable;
import java.util.List;


public class chatmessage implements Serializable {
private String message;
private String type;
private List list;
private String from;
private User user;
private String to;

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "chatmessage{" +
                "message='" + message + '\'' +
                ", type='" + type + '\'' +
                ", list=" + list +
                ", from='" + from + '\'' +
                '}';
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public List getList() {
        return list;
    }

    public chatmessage(String message, String type, List list) {
        this.message = message;
        this.type = type;
        this.list = list;
    }

    public void setList(List list) {
        this.list = list;
    }

    public chatmessage(String message, String type) {
        this.message = message;
        this.type = type;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
